﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>@ViewBag.Title - My ASP.NET Application</title>
    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/modernizr")

</head>
<body>
@using Microsoft.AspNet.Identity
@if (Request.IsAuthenticated)
{
    using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm", @class = "navbar-right" }))
    {
        <div class="navbar navbar-inverse navbar-fixed-top">
        <div class="col-md-8 col-md-offset-2">
            <div class="container-fluid">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                        <span class="sr-only"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                </div>
            </div>
            <div class="navbar-collapse collapse">
                <ul class="nav navbar-nav">
                    <li>
                        <a href="#">
                            Llaans
                        </a>
                    </li>
                    <li>
                        <a href="#">
                            Поща
                        </a>
                    </li>
                    <li>
                        <a href="#">
                            известия
                        </a>
                    </li>
                    <li>
                        <a href="#">
                            покани
                        </a>
                    </li>
                </ul>
                <div class="col-lg-5">
                    <div class="input-group">
                        <div class="col-xs-9">
                            <input type="text" class="form-control"/>
                        </div>
                        <span>
                            <button>търси   </button>
                        </span>
                    </div>
                </div>
                <ul class="nav navbar-nav navbar-right">
                    <li>
                        @Html.ActionLink("Hello " + User.Identity.GetUserName() + "!", "Manage", "Account", routeValues: null, htmlAttributes: new { title = "Manage" })
                    </li>
                    <li><a href="javascript:document.getElementById('logoutForm').submit()">Log off</a></li>
                </ul>
            </div>
        </div>  
    </div>
    }
}
else
{
     <div class="navbar navbar-inverse navbar-fixed-top">
        <div class="col-md-8 col-md-offset-2">
            <div class="container-fluid">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                        <span class="sr-only"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                </div>
            </div>
            <div class="navbar-collapse collapse">
                <ul class="nav navbar-nav">
                   <li>
                       <a href="#">
                           Llaans
                       </a>
                   </li>
                </ul>
                <ul class="nav navbar-nav navbar-right">
                    <li>
                        <a href="#">
                            регистрация
                        </a>
                    </li>
                    <li>
                        <a href="#">
                            забаравена парола
                        </a>
                    </li>
                </ul>
            </div>
        </div>  
    </div>
}
    <div class="container body-content">
        @RenderBody()      
    </div>
    <footer class="nav navbar-fixed-bottom col-md-8 col-md-offset-3">
        <ul class="nav nav-pills">
             <li>
                 <a href="#">
                     &copy; @DateTime.Now.Year Layans - Ventsislav Dinev
                 </a>
             </li>
             <li>
                 <a href="#">
                     За фирмата
                 </a>
             </li>
            <li>
                <a href="#">
                    Правила
                </a>
            </li>
            <li>
                <a href="#">
                    Блог
                </a>
            </li>
            <li>
                <a href="#">
                    Разработчици
                </a>
            </li>
        </ul>
    </footer>
    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/bundles/bootstrap")
    @RenderSection("scripts", required: false)
</body>
</html>
